Skip to main content

I created a (cool) logic gates circuit

At work, I need to have a good soldering skill. But honestly, I don't have the talent yet, so I need to practice. I asked my manager if I could practice soldering 1 hour a day, and he generously permitted me.

For my soldering practice, I want to make something out of it. I want to produce little projects using the used or cheap components that are readily available.

As my first project, I designed a logic gate circuit using transistors. The objective of the circuit is so that when I configure the 8-switch DIP switch, the circuit will be modified to a single functioning logic gate between OR, NOR, AND, and NAND gates. The 2-switch DIP switch is the two inputs. The red LED is the output (ON is 1, OFF is 0).

The 8-switch DIP switch configuration is as follows:

OR gate    00011100

NOR gate    00101110

AND gate    11000001

NAND gate    10100011

I am more comfortable using NPN transistors, but I only had two pieces of them. I needed more, so for the other two, I used PNP transistors. The rest are resistors and diodes.

It was pretty easy, but I still take pride on the fact that I designed this circuit on paper, by hand, without using a simulator to check if it works. I had a breadboard though, through which I verified that the components worked before I soldered them on the PCB board.

Of course, I did not get it at the first design. I had at least 3 major redesigns and a lot of readjustments in between. The last problem and the most challenging was that I needed 1 more switch to complete all four functioning gates without compromising one, but there were only 8 switches on the DIP switch. I could add additional switch and my problem would be solved, but I did not want to do that. I wanted to find a way to make it work using only the existing 8 switches. In the end, I did it. I was staring so hard at my design for hours, and then the solution stared back at me. Even before trying it out, the idea made me giddy in excitement. I modified the wiring, and it worked. I was so elated with joy.

And because I had lots of modifications and readjustments, the solder side turned out very messy. The wiring was bad, and the soldering was just as bad. This made me realize the importance of proper planning and good PCB design.



Comments

Popular posts from this blog

Book Recommendation: The Remembrance of Earth's Past Trilogy

On Earth, humankind can step onto another continent, and without a thought, destroy the kindred civilizations found there through warfare and disease. But when they gaze up at the stars, they turn sentimental and believe that if extraterrestrial intelligences exist, they must be civilizations bound by universal, noble, moral constraints, as if cherishing and loving different forms of life are parts of a self-evident universal code of conduct. I think it should be precisely the opposite: Let’s turn the kindness we show toward the stars to members of the human race on Earth.  ― Liu Cixin, The Three-Body Problem Book 1: The Three-Body Problem Book 2: The Dark Forest Book 3: Death's End Genre: Science Fiction Author: Cixin Liu Translators: Ken Liu (book 1,3) / Joel Martinsen (book 2)

I created a perfect star (again)

 I woke up early in the morning and sat at my computer. I was about to study Japanese when I suddenly remembered how I made a perfect star in high school. At that time, I had a good grasp of elementary geometry, so I was able to easily make it with a ruler and a protractor. With a ruler to measure length and a protractor to measure angles, it was easy to make a star.  A star is a polygon with ten sides. Technically, it is a decagon. But a star can be created by laying out only five lines from its center as its frame. To make a perfect star, all five lines must have the same length and must have equal angles between them. A complete rotation has 360°. To determine the angle from one line to the other, 360° is divided by the number of lines, which is 5. 360° / 5 = 72° From the angle alone, and with a ruler and a protractor, a perfect star can be drawn like so: Draw a line with length x from the center upward. Then, measure 72° from the center to its left and right, and draw the...

Understanding Semiconductors - Introduction

 I still remember when I was in my first year studying electrical engineering at the university, I was working on building a simple circuit from the little knowledge that I had at that time, using the basic components such as resistors, switches, batteries, and lamps. Along the process of my circuit building, I thought to myself, wouldn't it be nice if there were a component that lets current pass in one direction and blocks it from the other? At that time, I thought I was being a smart kid who just posed a very clever question that could change engineering forever. And at that very moment, my naiveté was instantly shattered when I found out about the existence of diodes. It exists . The 'magical' component that I wanted in order to realize the outcome for my circuit actually existed, not to mention it being invented more than a century before I came into being. I was completely awestruck, and I was filled with excitement at the same time. I kept asking, how does this '...